<?php session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
		<link rel="stylesheet" href="./font-awesome-4.0.3/css/font-awesome.min.css">
		<link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="style.css">
		
		
		<title>...L'art et la manière...</title>
		
		<script src="./jquery-1.10.2.min.js"></script>
		<script src="./bootstrap/js/bootstrap.min.js"></script>
		<script type="text/javascript">
			
			$(document).ready(function() {
				boxes = $('.test');
				maxHeight = Math.max.apply(
				  Math, boxes.map(function() {
					return $(this).height();
				}).get());
				boxes.height(maxHeight);
				
			});
			
			function setChemin(chemin,numPhoto){
				if (numPhoto=="")
				{
				document.getElementById("txtHint").innerHTML="";
				return;
				} 
				if (window.XMLHttpRequest)
				{// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp=new XMLHttpRequest();
				}
				else
				{// code for IE6, IE5
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				}
				xmlhttp.onreadystatechange=function()
				{
				if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
				document.getElementById("modalPhoto").innerHTML=xmlhttp.responseText;
				}
				}
				xmlhttp.open("GET","getinfo.php?id="+numPhoto+"&chem="+chemin,true);
				xmlhttp.send();
			}
			
			
			
		</script>
	</head>
	
	<?php
	// Create connection
	$con=mysqli_connect("localhost","root","","djoa");

	// Check connection
	if (mysqli_connect_errno($con))
	  {
	  echo "Failed to connect to MySQL: " . mysqli_connect_error();
	  }
	?>
